package base.BeD.Fifth;

public class PassingThis {
	public static void main(String[] args) {
		new Person().eat(new Apple());
	}
	
	public PassingThis(){
		
	}
}

class Person{
	public void eat(Apple apple){
		Apple peeled = apple.getPeeler();
		System.out.println(peeled.test);
	}
}

class Apple{
	
	public String test = "test11";
	
	Apple getPeeler(){
		return Peeler.peel(this);
	}
}

class Peeler{
	static Apple peel(Apple apple){
		apple.test = "54321";
		return apple;
	}
}





